﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"  schema="dbo"
                   assembly="OpenSda.Agilcont.Common.Data.Entities"
                   namespace="OpenSda.Agilcont.Common.Data.Entities"
                   default-lazy="false" default-cascade="none">
  <class name="ModuleAccess" table="common_Module_Access">
    <id name="Identity" column="ModuleAccessId "  type="guid">
      <generator class="guid.comb"/>
    </id>

    <property name="Module"           column="Module"           type="string" length="50" />
    <property name="InitialDate"      column="InitialDate"      type="DateTime"/>
    <property name="FinalDate"        column="FinalDate"        type="DateTime"/>
    <property name="DefaultEntityId"  column="DefaultEntityId"  type="Boolean" />
    <property name="UserId"           column="UserId "          type="Boolean" />
    <property name="CreationDate"     column="CreationDate"     type="DateTime"/>

    <many-to-one name="UserRef" column="UserId" class="OpenSda.Agilcont.Common.Data.Entities.User, OpenSda.Agilcont.Common.Data.Entities" not-null="true" />

  </class>
</hibernate-mapping>
